package com.ctgu.springshiro.service.impl;

import com.ctgu.springshiro.dao.PermissionDao;
import com.ctgu.springshiro.entity.Permission;
import com.ctgu.springshiro.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class PermissionService implements IPermissionService {

    @Autowired
    private PermissionDao permissionDao;

    @Override
    public Set<Permission> getPermissionsByRoleId(int roleId) {
        return permissionDao.getPermissionsByRoleId(roleId);
    }
}
